<div class="layui-card">
    <div class="layui-card-body">
        <form class="layui-form" action="" method="post" id="cp-form">
            <div class="layui-tab layui-tab-brief">
                <ul class="layui-tab-title">
                    <li class="layui-this">上传设置</li>
                </ul>
                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">

                        <div class="layui-form-item">
                            <div>
                                <label class=""><strong>最大同时上传文件数</strong> <span class="request-tips">*</span></label>
                            </div>
                            <div>
                                <input type="text" name="max_files" value="{$upload_setting.max_files|default=20}" required lay-verify="required" placeholder="最大同时上传文件数" autocomplete="off" class="layui-input">
                            </div>
                            <div class="layui-word-aux">多文件上传时,用户能最大同时上传文件数,默认20个</div>
                        </div>

                        <div class="layui-form-item">
                            <div>
                                <label class=""><strong>文件分块上传分块大小</strong> <span class="request-tips">*</span></label>
                            </div>
                            <div>
                                <input type="text" name="chunk_size" value="{$upload_setting.chunk_size|default=512}" required lay-verify="required" placeholder="最大同时上传文件数" autocomplete="off" class="layui-input">
                            </div>
                            <div class="layui-word-aux">文件上传采用分块上传,文件分块大小默认512KB,可以根据服务器最大上传限制设置此数值</div>
                        </div>

                        <div class="layui-form-item">
                            <div>
                                <label class=""><strong>图片文件</strong> <span class="request-tips">*</span></label>
                            </div>
                            <div>
                                <table class="layui-table">
                                    <tr>
                                        <td>
                                            <input type="text" name="file_types[image][upload_max_filesize]" value="{$upload_setting.file_types.image.upload_max_filesize|default=1024}" required lay-verify="required" placeholder="最大同时上传文件数" autocomplete="off" class="layui-input">
                                        </td>
                                        <td>
                                            <input type="text" name="file_types[image][extensions]" value="{$upload_setting.file_types.image.extensions|default='jpg,jpeg,png,gif,bmp4'}" required lay-verify="required" placeholder="最大同时上传文件数" autocomplete="off" class="layui-input">
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div class="layui-word-aux">允许上传大小默认为10240KB,1M=1024KB，允许上传格式默认为jpg,jpeg,png,gif,bmp</div>
                        </div>

                        <div class="layui-form-item">
                            <div>
                                <label class=""><strong>视频文件</strong> <span class="request-tips">*</span></label>
                            </div>
                            <div>
                                <table class="layui-table">
                                    <tr>
                                        <td>
                                            <input type="text" name="file_types[video][upload_max_filesize]" value="{$upload_setting.file_types.video.upload_max_filesize|default=1024}" required lay-verify="required" placeholder="最大同时上传文件数" autocomplete="off" class="layui-input">
                                        </td>
                                        <td>
                                            <input type="text" name="file_types[video][extensions]" value="{$upload_setting.video.image.extensions|default='mp4,avi,wmv,rm,rmvb,mkv'}" required lay-verify="required" placeholder="最大同时上传文件数" autocomplete="off" class="layui-input">
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div class="layui-word-aux">允许上传大小默认为102400KB,1M=1024KB，允许上传格式默认为mp4,avi,wmv,rm,rmvb,mkv</div>
                        </div>

                        <div class="layui-form-item">
                            <div>
                                <label class=""><strong>音频文件</strong> <span class="request-tips">*</span></label>
                            </div>
                            <div>
                                <table class="layui-table">
                                    <tr>
                                        <td>
                                            <input type="text" name="file_types[audio][upload_max_filesize]" value="{$upload_setting.file_types.audio.upload_max_filesize|default=1024}" required lay-verify="required" placeholder="最大同时上传文件数" autocomplete="off" class="layui-input">
                                        </td>
                                        <td>
                                            <input type="text" name="file_types[audio][extensions]" value="{$upload_setting.file_types.audio.extensions|default='mp3,wma,wav'}" required lay-verify="required" placeholder="最大同时上传文件数" autocomplete="off" class="layui-input">
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div class="layui-word-aux">允许上传大小默认为10240KB,1M=1024KB，允许上传格式默认为mp3,wma,wav</div>
                        </div>

                        <div class="layui-form-item">
                            <div>
                                <label class=""><strong>附件</strong> <span class="request-tips">*</span></label>
                            </div>
                            <div>
                                <table class="layui-table">
                                    <tr>
                                        <td>
                                            <input type="text" name="file_types[file][upload_max_filesize]" value="{$upload_setting.file_types.file.upload_max_filesize|default=1024}" required lay-verify="required" placeholder="最大同时上传文件数" autocomplete="off" class="layui-input">
                                        </td>
                                        <td>
                                            <input type="text" name="file_types[file][extensions]" value="{$upload_setting.file_types.file.extensions|default='txt,pdf,doc,docx,xls,xlsx,ppt,pptx,zip,rar'}" required lay-verify="required" placeholder="最大同时上传文件数" autocomplete="off" class="layui-input">
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div class="layui-word-aux">允许上传大小默认为10240KB,1M=1024KB，允许上传格式默认为除以上文档类型以外的其它常用文件,如：txt,pdf,doc,docx,xls,xlsx,ppt,pptx,zip,rar</div>
                        </div>

                        <div class="layui-form-item">
                            <div class="">
                                <div class="layui-text">带 * 号的为必填项</div>
                                <button class="layui-btn" lay-submit lay-filter="formDemo">保存</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
